package com.pureut.storage.controller;

import com.pureut.storage.dto.PickingReturnsDetailListDto;
import com.pureut.storage.service.PickingReturnsDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023/2/6 9:28
 * @Desc: 委外退货明细
 */
@RestController
@RequestMapping("/pickingReturnsDetail")
public class PickingReturnsDetailController extends BaseController {

    /**
     * 委外退货明细service
     */
    @Resource
    PickingReturnsDetailService pickingReturnsDetailService;

    /**
     *  委外退货明细列表
     */
    @GetMapping("/list")
    public TableDataInfo<PickingReturnsDetailListDto> getReturnsList(String wodDocNum, PageQuery pageQuery) {
        //查询列表
        return pickingReturnsDetailService.getReturnsList(wodDocNum,pageQuery);
    }
}
